<?php
	if(isset($_POST))
	{
		require("../../../connect.php");
		//echo(stripcslashes($_POST['content']));
		
		$topic = $_POST['topic'];
		$content = $_POST['content'];
		$query = mysql_query(" INSERT INTO tinymce(content) VALUES (N'$content') ");
		
		if($query)
		{
			echo "Insert data successfully <br/>";
			
			$sql = mysql_query(" SELECT id,content FROM tinymce ");
			while($row = mysql_fetch_array($sql))
			{
				echo "".$row['id']. " - " .$row['content'];
			}
		}
	}
?>
